<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			var arr = ['冬瓜','🍉','🎃','北瓜'];
			document.write(arr);
			document.write("<br>");
			
			//从下标为1开始截取 截取到最后
//			var newArr = arr.slice(1);

			//从下标为1开始截取 截取到下标为3的位置 但不包含下标为3的元素
			var newArr = arr.slice(1,3);
			document.write(newArr);
		</script>
	</head>
	<body>

	</body>
</html>
